/**
 * Created by hongye.liu on 14-10-27.
 */
require.config({
    paths:{
        "text":'../libs/js/text',
        'jquery':'../libs/js/jquery-2.1.1',
        'underscore':'../libs/js/underscore',
        'backbone':'../libs/js/backbone',
        'Router':'router',
        'jqueryMobile':'../libs/jQueryMobile/jquery.mobile-1.4.5.min',
        'global':'../utility/global',
        'cordova.android':'../libs/js/cordova'

    },
    shim:{
        'jquery':{
            exports:'$'

        },
        'underscore':{
            exports:'_'
        },
        'backbone':{
            deps:['underscore','jquery'],
            exports:'Backbone'
        },
        'jqueryMobile':{
            deps:['jquery'],
            exports:'jqm'
        }
    }
});


require([ "jquery","backbone","Router","jqueryMobile"], function( $, Backbone,Router,jqm) {
        $.mobile.ajaxEnabled = false;
		$.mobile.linkBindingEnabled = false;
		$.mobile.hashListeningEnabled = false;
		$.mobile.pushStateEnabled = false;

        this.router = new Router();
        Backbone.history.start();

});

